All Questions
9 questions
7votes
1answer
277views
Chess position representation with FEN parser
I'm developing a UCI chess engine and as part of my engine I need a position representation that stores the position of every piece on the board and all the information about the game, like castling ...
3votes
1answer
62views
Quickly read numeric input
Do you have any criticisms or corrections or improvements? I need to read only numbers(and this numbers could be from 0 to 1000000) ...
2votes
4answers
529views
Taking 2 command line inputs and verifying that they are integers, within the correct range of values
I'm taking 2 command line inputs, which have to be integers between 2 and 1,000,000. These two values are then passed into the getPrimes function, which is just a ...
4votes
2answers
437views
Reading file into structure
At the time I'm trying to read a quite big file into a C program for later user. The file size is in the range of 800 megabytes containing around 20 million lines of data of the following format: ...
10votes
2answers
130views
Scalability of running commands from user input
Here is some code I have that has been extracted and shrunk down from a project of mine. ...
12votes
1answer
3kviews
A regular expression parsing library in C
I've created a regular expression (regex) parsing library in C, and would like some feedback on it. Speed is really important to me, but any and all suggestions are acceptable. ...
24votes
2answers
2kviews
parcel: a JSON parsing library in C
I've created a JSON parsing library in C, and would like some feedback on it (feel free to submit a pull request on GitHub). Any and all suggestions are acceptable, but I would prefer if reviews were ...
3votes
2answers
796views
Improving Trie Implementation
This is an implementation of a trie, that I will be using on a code editor to parse keywords from a given programming language. I decided to use a trie when I asked this question, and the ...
12votes
2answers
4kviews
More efficient way to retrieve data from JSON
I am using the jsmn JSON parser (source code) to get extract data from a JSON string. jsmn stores the data in tokens that just point to the token boundaries in the JSON string instead of copying the ...